package cn.zbh.org.service;

import cn.zbh.basic.service.IBasicService;
import cn.zbh.org.domain.Shop;
import cn.zbh.org.dto.ShopDto;
import cn.zbh.org.domain.ShopLog;

import javax.mail.MessagingException;
import java.util.List;

public interface IShopService extends IBasicService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 审核通过
     * @param log
     */
    void pass(ShopLog log) throws MessagingException;

    /**
     * 驳回
     * @param log
     */
    void reject(ShopLog log) throws MessagingException;

    /**
     * 返回echarts数据
     * @return
     */
    List<ShopDto> getEcharts();

    List<ShopDto> getCountByState();
}
